package xyz.second.personal_info_madule.ChangePassword;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(value = "学生接口", tags = "学生-修改密码")
@RequestMapping("/api/leave")
public class student_ChangePassword {
    @ApiOperation(value = "修改密码", notes = "修改学生的密码")
    @GetMapping(value = "/student/UpdataPassword")
    public int putPassword(@ApiParam(name = "Password", value = "当前密码" ,type = "int") String Password ,
                          @ApiParam(name = "newPassword", value = "新密码",type = "String") String newPassword,
                          @ApiParam(name = "confirmPassword", value = "确认密码",type = "String") String confirmPassword) {
        int i = 0;
        if (newPassword.equals(confirmPassword)){
            i = 1;
        }
        System.out.println(Password+newPassword+confirmPassword);
        return i;
    }

}
